const a = function ({ row, column, rowIndex, data }) {
  const fields = ["FY", "JFLX"];
  const property = column.property;
  let rowspan = 1;
  let colspan = 1;
  if (fields.includes(property)) {
    if (rowIndex > 0 && data[rowIndex - 1][property] === row[property]) {
      rowspan = 0;
    } else {
      for (let i = rowIndex + 1; i < data.length; i++) {
        if (data[i][property] === row[property]) {
          rowspan++;
        } else {
          break;
        }
      }
    }
    const nameValue = row.COLLEGE_NAME;
    const pName1Value = row.PROGRAM_NAME;
    if (nameValue === pName1Value) {
      if (property === "FY") {
        colspan = 2;
      } else {
        colspan = 0;
      }
    }
  }
  return { rowspan, colspan };
};
